package com.butterfly.rest.resource.restlet.server;


import org.restlet.resource.ResourceException;
import org.restlet.resource.ServerResource;
import org.springframework.beans.factory.annotation.Autowired;

public abstract class BaseResources extends ServerResource {

    protected long accountId;

    protected int page = 0;

    protected int pageSize = 100;

    @Autowired
    private ResourceParameterAccess resourceParameterAccess;

    @Override
    protected void doInit() throws ResourceException {
        super.doInit();
        accountId = resourceParameterAccess.readUserId(getRequestAttributes());
//	    page = resourceParameterAccess.readPage(getRequestAttributes());
//        pageSize = resourceParameterAccess.readPageSize(getRequestAttributes());
    }

}
